﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Imagine
{
    class SimpleAnimatedSprite : GameObject
    {
        //Use this constructor in case you want to give it simple Sprite like functionality
        public SimpleAnimatedSprite(string texture) 
        {
            m_animatedSprite = new AnimatedSprite(texture);
        }
        //Use this if you want a normal Animation
        public SimpleAnimatedSprite(string texture, int frameCount,int width, int height) 
        {
            m_animatedSprite = new AnimatedSprite(texture, frameCount, width,height);
        }
        public override bool Update(Microsoft.Xna.Framework.GameTime time)
        {
            return m_animatedSprite.Update(time);            
        }
        public override bool Draw(Microsoft.Xna.Framework.GameTime time)
        {
            return m_animatedSprite.Draw(time);
        }
        public AnimatedSprite   AnimatedSprite
        {
            get { return m_animatedSprite;      }
            set { m_animatedSprite = value;     }
        }

        AnimatedSprite m_animatedSprite;
    }
}
